﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebServiceSample
{
    public partial class WebFormClient : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            btn1.Click += new EventHandler(btn1_Click);
        }

        void btn1_Click(object sender, EventArgs e)
        {
            var client = new WebServiceSample.SampleService();
            tbx2.Text = client.ReverseString(tbx1.Text);
            //tbx2.Text = client.HelloWorld();
        }
    }
}